//
//  YuYueDetailFooterView.h
//  FD
//
//  Created by xiaofang wang on 2019/2/12.
//  Copyright © 2019年 ZhiYuan Network. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

/**底部点击事件类型*/
typedef NS_ENUM(NSInteger, YuYueDetailFooterViewActionType) {
    /**左边联系商家*/
    YuYueDetailFooterViewActionLeft = 1,
    /**右边(status=0支付 4评价)*/
    YuYueDetailFooterViewActionRight = 2
};

@protocol YuYueDetailFooterViewDelegate <NSObject>
- (void)clickYuYueDetailFooterBtnActionType:(YuYueDetailFooterViewActionType)actionType;
@end

@interface YuYueDetailFooterView : UIView

@property (nonatomic, weak) id <YuYueDetailFooterViewDelegate>delegate;


//更新头部信息数据
- (void)updateYuYueDetailFooterViewHeaderWithCoupon:(NSNumber *)coupon freight:(NSNumber *)freight alreadyCoupon:(CGFloat)alreayCoupon sumPrice:(NSNumber *)sum;
//[self.headerView setDataWithCoupon:@5 freight:@4 alreadCoupon:0.0 sum:@888];

//更新cell内容
// <WSOrderMsgModel*>array
- (void)updateYuYueDetailFooterViewWithDataArray:(NSArray *)array;

//更新底部内容
- (void)updateYuYueDetailFooterViewFooterWithStatus:(NSNumber *)status paytype:(NSNumber *)paytype;
@end

NS_ASSUME_NONNULL_END
